requirejs.config({
    baseUrl: 'js',
    paths: {
        zepto : 'zepto.min',   //轻量级仿JQ类库，适合在移动web中使用
        swipe : 'swipe',
        echo  : 'echo.min'
    },
    zepto: {
        exports: '$'
    },
});
require(['zepto'],function(){
    echo.init({
        offset: 0,
        throttle: 0
    });
    var _tpl = "<div class='weui-dialog__bd'>您的账户已购买过此课程，不需要重复购买了哦~</div>\
    <div class='weui-dialog__ft'>\
        <div class='weui-dialog__btn weui-dialog__btn_default'>取消</div>\
        <div class='weui-dialog__btn weui-dialog__btn_primary'>查看订单</div>\
    </div>";
layer.open({
    shadeClose:false,
    className: 'login_popuo',
    shade:true,
    content:_tpl,
    success: function(elem){
        $('.weui-dialog__btn_default',elem).on('click',function(e){
            layer.closeAll();
        })
        $('.weui-dialog__btn_primary',elem).on('click',function(e){
            layer.closeAll();
            cb && cb()
        })
    }
});
    //common.openClassSucceed()
});